package com.taru.order.service;

import com.taru.order.dao.AnswerDaoImpl;
import com.taru.order.entity.Answer;
import com.taru.order.entity.Problem;

import java.util.List;

public class AnswerServiceImpl {

    AnswerDaoImpl answerDao=new AnswerDaoImpl();

    /**
     * 添加答案
     */
    public int addAnswer(Answer answer){

        return answerDao.addAnswer(answer);
    }
    /**
     * 获取答案列表
     */
    public List listAnswers(String problemId){

        return answerDao.listAnswer(problemId);
    }
    /**
     * 修改答案
     */
    public int modAnswer(Answer answer){

        return answerDao.modAnswer(answer);
    }
    /**
     * 删除答案
     */
    public int deleteAnswers(List list) throws Exception {

        return answerDao.deleteAnswer(list);
    }
}
